﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RabbitBus
{
    public interface IBus
    {
        /// <summary>
        /// 消息发布
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="msg"></param>
        void Publish<T>(T msg, int time = 0) where T : BusEvent;

    }
}
